package com.yzy.tomcat.state;

import java.io.IOException;
import java.nio.channels.SelectionKey;
import java.nio.channels.SocketChannel;
import java.util.concurrent.ThreadPoolExecutor;

import com.yzy.tomcat.TCPHandler;

/**
 * @author yzy
 * Created by yzy on 2021-11-19
 */

public interface HandlerState {

     void changeState(TCPHandler h);

     void handle(TCPHandler h, SelectionKey sk, SocketChannel sc,
                       ThreadPoolExecutor pool) throws IOException;
}
